<?php

namespace S3\Sample1Bundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
 * Connection
 */
class Connection
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @Assert\NotBlank(message="Should not be blank!")
     * @Assert\Length(min="2", minMessage = "Smaple2")
     * 
     * @var string
     */
    private $accountid;

    /**
     * @var string
     */
    private $providerid;

    /**
     * @var string
     */
    private $accesstoken;

    /**
     * @var string
     */
    private $secret;

    /**
     * @var string
     */
    private $refreshtoken;

    /**
     * @var string
     */
    private $provideraccountid;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set accountid
     *
     * @param string $accountid
     * @return Connection
     */
    public function setAccountid($accountid)
    {
        $this->accountid = $accountid;
    
        return $this;
    }

    /**
     * Get accountid
     *
     * @return string 
     */
    public function getAccountid()
    {
        return $this->accountid;
    }

    /**
     * Set providerid
     *
     * @param string $providerid
     * @return Connection
     */
    public function setProviderid($providerid)
    {
        $this->providerid = $providerid;
    
        return $this;
    }

    /**
     * Get providerid
     *
     * @return string 
     */
    public function getProviderid()
    {
        return $this->providerid;
    }

    /**
     * Set accesstoken
     *
     * @param string $accesstoken
     * @return Connection
     */
    public function setAccesstoken($accesstoken)
    {
        $this->accesstoken = $accesstoken;
    
        return $this;
    }

    /**
     * Get accesstoken
     *
     * @return string 
     */
    public function getAccesstoken()
    {
        return $this->accesstoken;
    }

    /**
     * Set secret
     *
     * @param string $secret
     * @return Connection
     */
    public function setSecret($secret)
    {
        $this->secret = $secret;
    
        return $this;
    }

    /**
     * Get secret
     *
     * @return string 
     */
    public function getSecret()
    {
        return $this->secret;
    }

    /**
     * Set refreshtoken
     *
     * @param string $refreshtoken
     * @return Connection
     */
    public function setRefreshtoken($refreshtoken)
    {
        $this->refreshtoken = $refreshtoken;
    
        return $this;
    }

    /**
     * Get refreshtoken
     *
     * @return string 
     */
    public function getRefreshtoken()
    {
        return $this->refreshtoken;
    }

    /**
     * Set provideraccountid
     *
     * @param string $provideraccountid
     * @return Connection
     */
    public function setProvideraccountid($provideraccountid)
    {
        $this->provideraccountid = $provideraccountid;
    
        return $this;
    }

    /**
     * Get provideraccountid
     *
     * @return string 
     */
    public function getProvideraccountid()
    {
        return $this->provideraccountid;
    }
}